import { Component } from '@angular/core';

declare var form: any;

@Component({
  templateUrl: './reg.interface.html'
})
export class RegInterfaceComponent {
  fs: any = null;
  constructor() {
    // 注册表单
    this.fs = new form.FormTreeService('interfacejurisdiction', {
      orderObject: { order: 0 },
      keyField: 'id',
      randomFields: ['id'],
      pageSize: 1000,
      defaultObject: { leaf: false }
    });
    this.fs.loadData(true);
  }
}
